//
//  MessageModel.m
//  AFNetworking
//
//  Created by Henry on 2023/3/22.
//

#import "MessageModel.h"
#import "NSString+CY.h"
#import "TimeHelper.h"
@interface MessageModel()



@end
@implementation MessageModel


-(NSString *)getTimeDay{
    long a = [self.pushDate longLongValue];
    return [TimeHelper TimestampToDay:[NSString stringWithFormat:@"%ld",a/1000]];
}


-(NSString *)getTimeSecond{
    long a = [self.pushDate longLongValue];
    return [TimeHelper TimestampToSecond:[NSString stringWithFormat:@"%ld",a/1000]];
}

-(NSString *)getTimeMinute{
    long a = [self.pushDate longLongValue];
    return [TimeHelper TimestampToMinute:[NSString stringWithFormat:@"%ld",a/1000]];
}

@end
